package com.wolfalpha.utron.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 详细信息资讯实体
 * <p/>
 * Created by luodon on 15/8/19.
 */
public class Information {

    private int id;             //资讯ID
    private String from;        //来源
    private String title;       //资讯标题
    private String content;     //内容
    private String face;        //封面地址
    private int grates;        //称赞次数
    private int collect;        //收藏次数
    private int collected;      //是否收藏
    private int share;          //分享次数
    private int useless;        //资讯无用数
    private long time;          //资讯发布时间
    private List<InformationComment> comment;       //评论

    public int getCollected() {
        return collected;
    }

    public void setCollected(int collected) {
        this.collected = collected;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public int getGrates() {
        return grates;
    }

    public void setGrates(int grates) {
        this.grates = grates;
    }

    public int getCollect() {
        return collect;
    }

    public void setCollect(int collect) {
        this.collect = collect;
    }

    public int getShare() {
        return share;
    }

    public void setShare(int share) {
        this.share = share;
    }

    public int getUseless() {
        return useless;
    }

    public void setUseless(int useless) {
        this.useless = useless;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public List<InformationComment> getComment() {
        return comment == null ? new ArrayList<InformationComment>() : comment;
    }

    public void setComment(List<InformationComment> comment) {
        this.comment = comment == null ? new ArrayList<InformationComment>() : comment;
    }
}
